<ion-view>
    <ion-pane>
            <ion-header-bar class="index_head">
                <button class="button button-icon icon ion-android-arrow-back"  ng-click="$ionicGoBack()" style="color: #fff"></button>
                <div class="h1 title">产品查看</div>
                <div class="head_menu_icon" ng-click="toggleRightSideMenu()">
                    {{name}}
                    <img src="img/icon/mechicon/menu_icon.png" alt="">
                </div>
            </ion-header-bar>

            <ul class="dataHome_list clear">
                <li  ng-click="dataTab('1','-7')" ng-class="n==1?'actives':''">
                    最近七天
                </li>
                <li ng-click="dataTab('2','-30')" ng-class="n==2?'actives':''">
                    最近一月
                </li>
                <li ng-click="dataTab('3','-180')" ng-class="n==3?'actives':''">
                    最近半年
                </li>
                <li ng-click="dataTab('4','-360')" ng-class="n==4?'actives':''">
                    最近一年
                </li>
                <li ng-click="dataTab('5','')" ng-class="n==5?'actives':''">
                    全部
                </li>
            </ul>
            <ion-content class="dataHome_con_wrap">
                <div class="data_product_conwrap">
                    <h3 class="data_product_tit">
                        {{productName}}
                    </h3>
                    <div class='data_product_con'>
                        <div class="row data_product_head">
                            <span class="col">姓名</span>
                            <span class="col">电话</span>
                            <span class="col">查看时间</span>
                        </div>
                        <ul class="data_product_list" ng-if="list">
                            <li class="row" ng-repeat="x in list">
                                <span class="col" ng-if="x.userName">
                                    {{x.userName}}
                                </span>
                                <span class="col" ng-if="!x.userName" style="display: flex;">
                                    <img ng-src="{{x.headimgurl}}" style="width: 35px;height: 35px;margin: auto 0">
                                    <div style="margin: auto 10px">{{x.nickname}}</div>
                                </span>
                                <span class="col" style="margin: auto 0" ng-if="x.uLoginName">
                                    {{x.uLoginName}}
                                </span>
                                 <span class="col" ng-if="!x.uLoginName" style="margin: auto 0">
                                    --
                                </span>
                                <span class="col" style="margin: auto 0">
                                    {{x.createDate | limitTo:16}}
                                </span>
                            </li>

                        </ul>
                    </div>
                </div>

            </ion-content>
    </ion-pane>
</ion-view>